Skip to content

Conversation

jserv
Copy link
Contributor

@jserv jserv commented Mar 1, 2025

The commit 1d68fae introduced an anonymous bit field, which triggers a false positive in Cppcheck 2.13.0 (provided by Ubuntu 24.04):
"Label 'int' is not used. [unusedLabel]".

Although newer versions of Cppcheck resolve this issue, version 2.13 is still preferable for minimal development environment changes. Instead of switching versions, this commit drops the anonymous bit field to prevent the Cppcheck warning.

The commit 1d68fae introduced an anonymous bit field, which triggers a
false positive in Cppcheck 2.13.0 (provided by Ubuntu 24.04):
  "Label 'int' is not used. [unusedLabel]".

Although newer versions of Cppcheck resolve this issue, version 2.13 is
still preferable for minimal development environment changes. Instead of
switching versions, this commit drops the anonymous bit field to prevent
the Cppcheck warning.

Reported-by: backink <[email protected]>
Co-authored-by: Lumynous <[email protected]>

Change-Id: I12575573258acbd13df05be86d05ca42251cabe6
@jserv jserv merged commit 0fc3836 into master Mar 1, 2025
4 checks passed
@jserv jserv deleted the cppcheck-suppress branch March 1, 2025 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant